package com.lpfy.dtxc.bean;

import java.util.ArrayList;

/**
 * @author: hanGuangHui
 * @data: 2024/3/2
 * @description:
 */
public class FileResBean {
    /**
     * 版本号，用于控制资源是否需要更新
     */
    private String version;

    private ArrayList<ItemBean> items;


    public static class ItemBean{
        /**
         * 资源类型
         */
        private String type;
        /**
         * 时间间隔
         */
        private int duration;
        /**
         * 资源路径
         */
        private String path;

        public ItemBean(String type, int duration, String path) {
            this.type = type;
            this.duration = duration;
            this.path = path;
        }

        public String getType() {
            return type == null ? "" : type;
        }

        public void setType(String type) {
            this.type = type == null ? "" : type;
        }

        public int getDuration() {
            return duration;
        }

        public void setDuration(int duration) {
            this.duration = duration;
        }

        public String getUrl() {
            return path == null ? "" : path;
        }

        public void setUrl(String url) {
            this.path = url == null ? "" : url;
        }
    }

    public String getVersion() {
        return version == null ? "" : version;
    }

    public void setVersion(String version) {
        this.version = version == null ? "" : version;
    }

    public ArrayList<ItemBean> getItem() {
        if (items == null) {
            return new ArrayList<>();
        }
        return items;
    }

    public void setItem(ArrayList<ItemBean> item) {
        this.items = item;
    }
}
